package com.zhilianbao.leyaogo.model.entity;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Cyarie on 2016/1/14.
 */
public class AllBean implements Serializable{


    /**
     * children : [{"children":[{"id":"110101","text":"东城区"},{"id":"110102","text":"西城区"},{"id":"110103","text":"崇文区"},{"id":"110104","text":"宣武区"},{"id":"110105","text":"朝阳区"},{"id":"110106","text":"丰台区"},{"id":"110107","text":"石景山区"},{"id":"110108","text":"海淀区"},{"id":"110109","text":"门头沟区"},{"id":"110111","text":"房山区"},{"id":"110112","text":"通州区"},{"id":"110113","text":"顺义区"},{"id":"110114","text":"昌平区"},{"id":"110115","text":"大兴区"},{"id":"110116","text":"怀柔区"},{"id":"110117","text":"平谷区"},{"id":"110228","text":"密云县"},{"id":"110229","text":"延庆县"}],"id":"110100","text":"北京市"}]
     * id : 110000
     * text : 北京市
     */

    private String id;
    @SerializedName("text")
    private String province;
    /**
     * children : [{"id":"110101","text":"东城区"},{"id":"110102","text":"西城区"},{"id":"110103","text":"崇文区"},{"id":"110104","text":"宣武区"},{"id":"110105","text":"朝阳区"},{"id":"110106","text":"丰台区"},{"id":"110107","text":"石景山区"},{"id":"110108","text":"海淀区"},{"id":"110109","text":"门头沟区"},{"id":"110111","text":"房山区"},{"id":"110112","text":"通州区"},{"id":"110113","text":"顺义区"},{"id":"110114","text":"昌平区"},{"id":"110115","text":"大兴区"},{"id":"110116","text":"怀柔区"},{"id":"110117","text":"平谷区"},{"id":"110228","text":"密云县"},{"id":"110229","text":"延庆县"}]
     * id : 110100
     * text : 北京市
     */

    @SerializedName("children")
    private List<CityEntity> cityList;

    public void setId(String id) {
        this.id = id;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public void setCityList(List<CityEntity> cityList) {
        this.cityList = cityList;
    }

    public String getId() {
        return id;
    }

    public String getProvince() {
        return province;
    }

    public List<CityEntity> getCityList() {
        return cityList;
    }

    public static class CityEntity {
        private String id;
        @SerializedName("text")
        private String city;
        /**
         * id : 110101
         * text : 东城区
         */

        @SerializedName("children")
        private List<CountryEntity> countryList;

        public void setId(String id) {
            this.id = id;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public void setCountryList(List<CountryEntity> countryList) {
            this.countryList = countryList;
        }

        public String getId() {
            return id;
        }

        public String getCity() {
            return city;
        }

        public List<CountryEntity> getCountryList() {
            return countryList;
        }

        public static class CountryEntity {
            private String id;
            @SerializedName("text")
            private String country;

            public void setId(String id) {
                this.id = id;
            }

            public void setCountry(String country) {
                this.country = country;
            }

            public String getId() {
                return id;
            }

            public String getCountry() {
                return country;
            }
        }
    }
}
